package com.bjtu.literatureclient.api;

import java.util.HashMap;
import java.util.Map;

public class Constans {


    public static final class UserController{
        public static final String COOKIE_SHIRO = "JSESSIONID";
    }

    public static class StatusValue{
        public static final Integer INSERT= 1;
        public static final Integer UPDATE = 2;
        public static final Integer DELETE = 3;

    }

    public static class IndexCode{
        public static final String JOURNAL_PAPER_EN = "JE";
        public static final String JOURNAL_PAPER_CN = "JC";
        public static final String JOURNAL_EN = "JA";
        public static final String JOURNAL_CN = "JB";
    }

    public static Map<String,String> indexCodeValueMapper = new HashMap<>();
    static {
        indexCodeValueMapper.put("JE","西文期刊析出论文");
        indexCodeValueMapper.put("JC","中文期刊析出论文");
        indexCodeValueMapper.put("JA","西文期刊");
        indexCodeValueMapper.put("JB","中文期刊");
    }

    public static Map<Integer,String> operationMapper = new HashMap<>();
    static {
        operationMapper.put(1,"新增");
        operationMapper.put(2,"修改");
        operationMapper.put(3,"删除");

    }


}
